home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{220F55E8-7AAE-11D3-9D68-F74ED5721646}#17.0#0"; "TAni.ocx"
- Begin VB.Form FrmAniGif
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Gif Animation"
- ClientHeight = 4920
- ClientLeft = 45
- ClientTop = 285
- ClientWidth = 4410
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4920
- ScaleWidth = 4410
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin TAni.TMaxAni TMaxAni1
- Height = 375
- Left = 1800
- TabIndex = 5
- Top = 120
- Width = 2535
- _ExtentX = 4471
- _ExtentY = 661
- End
- Begin VB.Frame Frame1
- Height = 4695
- Left = 0
- TabIndex = 0
- Top = 0
- Width = 1695
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 120
- TabIndex = 4
- Top = 600
- Width = 1455
- End
- Begin VB.DirListBox Dir1
- Height = 2115
- Left = 120
- TabIndex = 3
- Top = 960
- Width = 1455
- End
- Begin VB.FileListBox File1
- Height = 1455
- Left = 120
- Pattern = "*.gif"
- TabIndex = 2
- Top = 3120
- Width = 1455
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 120
- TabIndex = 1
- Top = 240
- Width = 1455
- End
- End
- Attribute VB_Name = "FrmAniGif"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Public FileSelect$
- Private Sub Dir1_Change()
- On Error Resume Next
- File1.Path = Dir1.Path
- End Sub
- Private Sub Drive1_Change()
- On Error Resume Next
- Dir1.Path = Drive1.Drive
- End Sub
- Private Sub File1_Click()
- Text1.Text = File1.FileName
- If Len(File1.Path) > 3 Then
- FileSelect$ = File1.Path & "\" & File1.FileName
- FileSelect$ = File1.Path & File1.FileName
- End If
- Me.Caption = FileSelect$
- End Sub
- Private Sub File1_DblClick()
- On Error Resume Next
- TMaxAni1.FileName = FileSelect$
- TMaxAni1.ShowGif
- ResizeForm
- End Sub
- Sub ResizeForm()
- If TMaxAni1.Height > Frame1.Height Then
- Me.Height = TMaxAni1.Height + TMaxAni1.Top + 500
- Me.Height = 5300
- End If
- If TMaxAni1.Width > 2500 Then
- Me.Width = TMaxAni1.Width + Frame1.Width + 300
- Me.Width = 4500
- End If
- End Sub
-